<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
这是thymeleaf2页面
<table>
    <tr th:each="pet,stats:${pets}">
        <td th:text="${stats.count}"></td>
        <td th:text="${pet.getName()}"></td>
        <td th:text="${pet.getWeight()}"></td>
    </tr>
</table>
</body>
</html>